package com.ruoyi.network.config;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import com.ruoyi.network.service.INetworkEdgeService;

import lombok.extern.slf4j.Slf4j;

@Configuration
@Slf4j
public class NetworkServerAutoConfig {
	@Autowired
	private INetworkEdgeService networkEdgeService;
	@PostConstruct
	void init() {
		networkEdgeService.downAll();
		log.info("系统重启下线所有云边协同客户端");
	}
}
